//
//  VVSportMainViewController.m
//  DingDingSport
//
//  Created by 王惠平 on 2017/4/21.
//  Copyright © 2017年 will wang. All rights reserved.
//

#import "VVSportMainViewController.h"
#import "VVSportControlViewController.h"
#import "VVSportTrack.h"
@interface VVSportMainViewController ()

@end

@implementation VVSportMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
- (IBAction)clickSportBtn:(UIButton *)sender {
    
    //创建运动轨迹模型
    VVSportTrack *track = [[VVSportTrack alloc]initWithSportType:sender.tag withSportState:VVSportStateContinue];
    
    //创建轨迹视图
    VVSportControlViewController *trackView = [[VVSportControlViewController alloc]init];
    
    trackView.track = track;
    
    [self presentViewController:trackView animated:YES completion:nil];
    
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
